﻿using Data.Common;
using Data.Model;

namespace DataAccess.SystemManage
{
    public interface ISysRole
    {
        ResultInfo<Role> GetRole(int id);
        ResultInfo<PagingDataSet<Role>> GetRoles(int pageIndex, int pageSize, string roleName);
        ResultInfo<int> CreateUpdateRole(Role role);
        ResultInfo<bool> DeleteRole(int id);
        ResultInfo<PagingDataSet<RolePrivilege>> GetRolePrivileges(int pageIndex, int pageSize, int roleId);
        ResultInfo<int> CreateUpdateRolePrivilege(RolePrivilege rp);
        ResultInfo<bool> DeleteRolePrivilege(int id);
        ResultInfo<PagingDataSet<Privilege>> GetRoleUnPrivileges(int roleid, int pageIndex, int pageSize);
    }
}
